package org.afei.ioc.bean;


import org.afei.ioc.annotation.Bean;
import org.afei.ioc.annotation.Param;
import org.afei.ioc.annotation.Service;

/**
 * @author afei
 * @date 17-5-26.
 */
@Bean(name = "zhangsan")
public class ZhangSan {

    @Bean(name = "person")
    private Person person;

    @Service(name = "ToSomeWhere")
    public String ToSomeWhere(@Param(name = "address") String address) {
        return person.ToSomeWhere(address);
    }

}
